<?php
/**
 * 发仔<i@fazi.me> 2018-07-09
 */

namespace app\open\model;

use traits\model\SoftDelete;
class CarMaintenanceApprove extends Base
{
    use SoftDelete;
    protected $deleteTime = 'delete_time';
    protected $autoWriteTimestamp = true;

    public function maintenance(){
        return $this->hasOne('CarMaintenance','id','car_maintenance_id','maintenance','left')->setEagerlyType(0);
    }
}